home *** CD-ROM | disk | FTP | other *** search
- import java.applet.Applet;
- import java.awt.Button;
- import java.awt.Checkbox;
- import java.awt.CheckboxGroup;
- import java.awt.Color;
- import java.awt.Component;
- import java.awt.Container;
- import java.awt.Event;
- import java.awt.Font;
- import java.awt.Graphics;
- import java.awt.Image;
- import java.awt.Label;
- import java.awt.LayoutManager;
- import java.awt.MediaTracker;
- import java.awt.TextArea;
- import java.awt.TextComponent;
- import java.awt.TextField;
- import java.io.DataInputStream;
- import java.io.EOFException;
- import java.io.IOException;
- import java.net.MalformedURLException;
- import java.net.URL;
- import java.util.StringTokenizer;
-
- public class Instabase extends Applet implements Runnable {
- Thread mainThread;
- WaitThread waitThread;
- BarThread barThread;
- // $FF: renamed from: t1 java.awt.TextField
- TextField field_0;
- // $FF: renamed from: l1 java.awt.Label
- Label field_1;
- // $FF: renamed from: l2 java.awt.Label
- Label field_2;
- // $FF: renamed from: l3 java.awt.Label
- Label field_3;
- // $FF: renamed from: l4 java.awt.Label
- Label field_4;
- // $FF: renamed from: l5 java.awt.Label
- Label field_5;
- // $FF: renamed from: l6 java.awt.Label
- Label field_6;
- // $FF: renamed from: l7 java.awt.Label
- Label field_7;
- // $FF: renamed from: l8 java.awt.Label
- Label field_8;
- // $FF: renamed from: l9 java.awt.Label
- Label field_9;
- Label l10;
- Label l11;
- Label l12;
- Label l13;
- Label l14;
- Label l15;
- Label l16;
- Label l17;
- TextField t10;
- TextField t11;
- TextField t12;
- TextField t13;
- TextField t14;
- TextField t15;
- TextField t16;
- TextField t17;
- // $FF: renamed from: t2 java.awt.TextField
- TextField field_10;
- // $FF: renamed from: t3 java.awt.TextField
- TextField field_11;
- // $FF: renamed from: t4 java.awt.TextField
- TextField field_12;
- // $FF: renamed from: t5 java.awt.TextField
- TextField field_13;
- // $FF: renamed from: t6 java.awt.TextField
- TextField field_14;
- // $FF: renamed from: t7 java.awt.TextField
- TextField field_15;
- // $FF: renamed from: t8 java.awt.TextField
- TextField field_16;
- // $FF: renamed from: t9 java.awt.TextField
- TextField field_17;
- Button button1;
- Button button2;
- Button button3;
- TextField tfsearch;
- Label label1;
- Label templabel;
- Label l18;
- Button BView;
- Button BComments;
- Checkbox rb1;
- CheckboxGroup Group1;
- Checkbox rb2;
- Checkbox rb3;
- Checkbox rb4;
- Checkbox rb5;
- Checkbox rb6;
- Checkbox rb7;
- Checkbox rb8;
- Button BFirst;
- Button BPrev;
- Button BNext;
- Button BLast;
- Button BCreated;
- Label LReg;
- Label LNrRec;
- Button bGo3;
- Button bGo4;
- Button bGo5;
- Button bGo6;
- Button bGo7;
- Button bGo8;
- Button bGo9;
- Button bGo10;
- Button bGo11;
- Button bGo12;
- Button bGo13;
- Button bGo14;
- Button bGo15;
- Button bGo16;
- Button bGo17;
- TextArea t18;
- Checkbox rb9;
- Checkbox rb10;
- Checkbox rb11;
- Checkbox rb12;
- Checkbox rb16;
- Checkbox rb15;
- Checkbox rb14;
- Checkbox rb13;
- Label norec;
- Label lmess;
- Label bar1;
- Label bar2;
- Label bar3;
- Label bar4;
- Label bar5;
- Label bar6;
- Label bar7;
- Label bar8;
- Label bar9;
- Label bar10;
- Label label_bar;
- Color labelColor;
- Color mycolor = new Color(143, 131, 184);
- Color Appletcolor;
- int fnr;
- int cnt;
- int icnt;
- int nr_rec;
- int current;
- int prev_curr;
- int first_pos;
- int CurrentRecord;
- int Register;
- String file1;
- String file2;
- String site;
- String dataname;
- String image;
- String comment;
- String imgcom;
- int max_no_rec;
- int local_no_rec;
- boolean isLocal;
- // $FF: renamed from: db java.lang.String[][]
- String[][] field_18;
- int[] stab;
- int c_d = 1;
- Checkbox[] vec_rb = new Checkbox[16];
- Checkbox temprb;
- URL UrlGlobal;
- Label[] lbar = new Label[10];
- Image ImageC;
- String sProvider = new String("w");
- Font ft1 = new Font("Arial", 1, 26);
- Font ft2 = new Font("Arial", 1, 24);
- int[] posx = new int[]{16, 5, 1, 5, 16, 27, 31, 26};
- int[] posy = new int[]{1, 5, 16, 27, 31, 27, 16, 5};
- int aidx = 1;
- int oldaidx;
- int upd;
-
- public void show_data() {
- Label[] var1 = new Label[]{this.field_1, this.field_2, this.field_3, this.field_4, this.field_5, this.field_6, this.field_7, this.field_8, this.field_9, this.l10, this.l11, this.l12, this.l13, this.l14, this.l15, this.l16, this.l17};
- TextField[] var2 = new TextField[]{this.field_0, this.field_10, this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
- byte var3 = 1;
- if (this.c_d != 0) {
- var3 = 0;
- }
-
- for(int var4 = var3; var4 < this.fnr; ++var4) {
- var1[var4].show();
- var2[var4].show();
- }
-
- for(int var5 = 0; var5 < this.fnr - 1 && this.stab[var5] != 0; ++var5) {
- if (this.stab[var5] - 1 < this.fnr && this.stab[var5] >= 2 && this.stab[var5] <= 17) {
- this.vec_rb[this.stab[var5] - 2].show();
- }
- }
-
- }
-
- public void hide_data() {
- Label[] var1 = new Label[]{this.field_1, this.field_2, this.field_3, this.field_4, this.field_5, this.field_6, this.field_7, this.field_8, this.field_9, this.l10, this.l11, this.l12, this.l13, this.l14, this.l15, this.l16, this.l17};
- TextField[] var2 = new TextField[]{this.field_0, this.field_10, this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
- Button[] var3 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
-
- for(int var4 = 0; var4 < 15; ++var4) {
- var1[var4].hide();
- var2[var4].hide();
- var3[var4].hide();
- this.vec_rb[var4].hide();
- }
-
- var1[15].hide();
- var1[16].hide();
- var2[15].hide();
- var2[16].hide();
- this.vec_rb[15].hide();
- }
-
- public void hide_butt() {
- this.BFirst.hide();
- this.BPrev.hide();
- this.BNext.hide();
- this.BLast.hide();
- this.button1.hide();
- this.button2.hide();
- this.button3.hide();
- this.tfsearch.hide();
- this.label1.hide();
- this.LNrRec.hide();
- this.BView.hide();
- this.t18.hide();
- this.l18.hide();
- this.BComments.hide();
- }
-
- public void show_butt() {
- this.BFirst.show();
- this.BPrev.show();
- this.BNext.show();
- this.BLast.show();
- this.button1.show();
- this.button2.show();
- this.button3.show();
- this.tfsearch.show();
- this.label1.show();
- this.LNrRec.show();
- if (this.comment != null) {
- this.BComments.show();
- if (this.imgcom != null) {
- this.l18.show();
- this.t18.show();
- }
- }
-
- if (this.image != null) {
- this.BView.show();
- }
-
- }
-
- public void display_mess(int var1, int var2, String var3) {
- this.lmess.move(var1, var2);
- this.lmess.setAlignment(0);
- this.lmess.setText(var3);
- this.lmess.show();
- }
-
- public void acknoledge() {
- this.BFirst.disable();
- this.BPrev.disable();
- if (this.nr_rec > 1) {
- this.BNext.enable();
- this.BLast.enable();
-
- for(int var1 = 1; var1 < this.fnr; ++var1) {
- this.vec_rb[var1 - 1].enable();
- }
- }
-
- this.barThread.stop();
- this.LNrRec.show();
- this.norec.setText("");
-
- try {
- URL var2 = new URL(((Applet)this).getDocumentBase(), "instabase.html");
-
- try {
- DataInputStream var3 = new DataInputStream(var2.openStream());
-
- try {
- byte var7 = var3.readByte();
- this.LReg.hide();
- this.Register = 0;
- } catch (EOFException var4) {
- this.LReg.show();
- this.Register = 1;
- }
- } catch (IOException var5) {
- this.LReg.show();
- this.Register = 1;
- }
- } catch (MalformedURLException var6) {
- this.LReg.show();
- }
-
- if (this.isLocal) {
- this.hide_butt();
- this.hide_data();
- this.lmess.reshape(5, 25, 610, 16);
- this.display_mess(1, 40, "For local test you can load only 10 records. To see all records you must upload the files to your server...");
- this.BCreated.setLabel("Continue");
- this.BCreated.reshape(250, 65, 70, 20);
- this.BCreated.show();
- }
-
- }
-
- public void run() {
- if (this.waitThread == null) {
- this.waitThread = new WaitThread(this);
- this.waitThread.start();
- }
-
- if (this.barThread == null) {
- this.lbar[0].setText("||");
- this.lbar[1].setText(">");
- this.lbar[9].setText("||");
- this.barThread = new BarThread(this);
- this.barThread.start();
- }
-
- }
-
- void bGo3_Clicked(Event var1, Button var2) {
- TextField[] var3 = new TextField[]{this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
- TextField var4 = this.field_11;
- Button[] var5 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
-
- for(int var6 = 0; var6 < 15; ++var6) {
- if (var2 == var5[var6]) {
- var4 = var3[var6];
- break;
- }
- }
-
- if (((TextComponent)var4).getText().indexOf("http://") != -1) {
- try {
- ((Applet)this).getAppletContext().showDocument(new URL(((TextComponent)var4).getText()), "_blank");
- } catch (MalformedURLException var7) {
- }
- } else if (((TextComponent)var4).getText().indexOf("ftp://") != -1) {
- try {
- ((Applet)this).getAppletContext().showDocument(new URL(((TextComponent)var4).getText()), "_blank");
- } catch (MalformedURLException var8) {
- }
- } else if (((TextComponent)var4).getText().indexOf("www") != -1) {
- try {
- ((Applet)this).getAppletContext().showDocument(new URL("http://" + ((TextComponent)var4).getText()), "_blank");
- } catch (MalformedURLException var9) {
- }
- } else if (((TextComponent)var4).getText().indexOf("@") != -1) {
- try {
- ((Applet)this).getAppletContext().showDocument(new URL("mailto:" + ((TextComponent)var4).getText()), "_self");
- } catch (MalformedURLException var10) {
- }
- }
- }
-
- void BCreated_Clicked(Event var1) {
- this.BCreated.setLabel("Wait");
- this.BCreated.hide();
- this.lmess.setText("");
- this.lmess.hide();
- this.show_butt();
- this.show_data();
- this.upd = 1;
- this.show_record(0);
- }
-
- void BComments_Clicked(Event var1) {
- Object var2 = null;
-
- try {
- URL var5 = new URL(((Applet)this).getCodeBase() + "notes" + this.dataname + this.field_10.getText() + ".txt");
- ((Applet)this).getAppletContext().showDocument(var5, "_blank");
- } catch (MalformedURLException var3) {
- var2 = null;
- }
- }
-
- void BView_Clicked(Event var1) {
- Object var2 = null;
-
- try {
- URL var5 = new URL(((Applet)this).getCodeBase() + this.dataname + this.field_10.getText() + ".jpg");
- ((Applet)this).getAppletContext().showDocument(var5, "_blank");
- } catch (MalformedURLException var3) {
- var2 = null;
- }
- }
-
- void tfsearch_EnterHit(Event var1) {
- this.BFirst.enable();
- this.BPrev.enable();
- this.BNext.enable();
- this.BLast.enable();
- }
-
- void BLast_Clicked(Event var1) {
- this.button1.disable();
- this.button3.disable();
- this.tfsearch.setText("");
- this.templabel.setText("");
- this.show_record(this.nr_rec - 1);
- this.BNext.disable();
- this.BLast.disable();
- this.BFirst.enable();
- this.BPrev.enable();
- }
-
- void BNext_Clicked(Event var1) {
- this.button1.disable();
- this.button3.disable();
- this.tfsearch.setText("");
- this.templabel.setText("");
- if (this.CurrentRecord < this.nr_rec - 1) {
- ++this.CurrentRecord;
- this.show_record(this.CurrentRecord);
- } else {
- this.BNext.disable();
- this.BLast.disable();
- }
-
- this.BFirst.enable();
- this.BPrev.enable();
- }
-
- void BPrev_Clicked(Event var1) {
- this.button1.disable();
- this.button3.disable();
- this.tfsearch.setText("");
- this.templabel.setText("");
- if (this.CurrentRecord > 0) {
- --this.CurrentRecord;
- this.show_record(this.CurrentRecord);
- } else {
- this.BFirst.disable();
- this.BPrev.disable();
- }
-
- this.BNext.enable();
- this.BLast.enable();
- }
-
- void BFirst_Clicked(Event var1) {
- this.button1.disable();
- this.button3.disable();
- this.tfsearch.setText("");
- this.templabel.setText("");
- this.CurrentRecord = 0;
- this.show_record(0);
- this.BFirst.disable();
- this.BPrev.disable();
- this.BNext.enable();
- this.BLast.enable();
- }
-
- void rb1_Action(Event var1) {
- this.tfsearch.setText("");
- this.tfsearch.requestFocus();
- this.button3.disable();
- this.button1.disable();
- }
-
- void button1_Clicked(Event var1) {
- this.temprb = this.Group1.getCurrent();
- String var2 = this.tfsearch.getText();
- if (this.icnt >= 1) {
- --this.icnt;
- }
-
- for(int var3 = 0; var3 <= 15; ++var3) {
- if (this.vec_rb[var3] == this.temprb) {
- if (this.current > 0) {
- this.current = this.search_record(var2, var3 + 1, this.current - 1, -1);
- } else {
- this.templabel.setText("Record Not Found");
- this.button1.disable();
- }
-
- if (this.current >= 0) {
- this.show_record(this.current);
- this.button3.enable();
- }
- }
- }
-
- }
-
- void button3_Clicked(Event var1) {
- this.temprb = this.Group1.getCurrent();
- String var2 = this.tfsearch.getText();
- if (this.icnt <= this.cnt) {
- ++this.icnt;
- }
-
- for(int var3 = 0; var3 <= 15; ++var3) {
- if (this.vec_rb[var3] == this.temprb) {
- this.prev_curr = this.current;
- this.current = this.search_record(var2, var3 + 1, this.current + 1, 1);
- if (this.current >= 0) {
- this.show_record(this.current);
- this.button1.enable();
- } else {
- this.button3.disable();
- if (this.first_pos == this.prev_curr) {
- this.button1.disable();
- } else {
- this.button1.enable();
- }
-
- this.current = this.prev_curr;
- }
- }
- }
-
- }
-
- void button2_Clicked(Event var1) {
- this.temprb = this.Group1.getCurrent();
- String var2 = this.tfsearch.getText();
-
- for(int var3 = 0; var3 <= 15; ++var3) {
- if (this.vec_rb[var3] == this.temprb) {
- this.count_record(var2, var3 + 1);
- if (this.cnt > 0) {
- this.current = this.search_record(var2, var3 + 1, 0, 1);
- if (this.current >= 0) {
- this.show_record(this.current);
- this.first_pos = this.current;
- this.button3.enable();
- this.button1.disable();
- return;
- }
- }
- break;
- }
- }
-
- }
-
- void count_record(String var1, int var2) {
- int var3 = 0;
- this.cnt = 0;
-
- for(this.icnt = 0; var3 < this.nr_rec; ++var3) {
- if (this.field_18[var3][var2].toLowerCase().indexOf(var1.toLowerCase()) != -1) {
- ++this.cnt;
- }
- }
-
- if (this.cnt > 0) {
- this.icnt = 1;
- if (this.cnt > 1) {
- this.templabel.setText(this.icnt + " of " + this.cnt + " Records Found");
- } else {
- this.templabel.setText(this.icnt + " of " + this.cnt + " Record Found");
- }
- } else {
- this.templabel.setText("Record Not Found");
- }
- }
-
- int search_record(String var1, int var2, int var3, int var4) {
- int var5;
- for(var5 = var3; var5 >= 0 && var5 < this.nr_rec && this.field_18[var5][var2].toLowerCase().indexOf(var1.toLowerCase()) == -1; var5 += var4) {
- }
-
- if (var5 < this.nr_rec) {
- if (this.cnt > 0) {
- if (this.cnt > 1) {
- this.templabel.setText(this.icnt + " of " + this.cnt + " Records Found");
- } else {
- this.templabel.setText(this.icnt + " of " + this.cnt + " Record Found");
- }
- }
-
- return var5;
- } else {
- this.templabel.setText("Record Not Found");
- return -1;
- }
- }
-
- void show_record(int var1) {
- TextField[] var2 = new TextField[]{this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
- Button[] var3 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
- this.field_0.setText(this.field_18[var1][0]);
- this.field_10.setText(this.field_18[var1][1]);
-
- for(int var4 = 0; var4 < this.fnr - 2; ++var4) {
- var2[var4].setText(this.field_18[var1][var4 + 2]);
- if (this.field_18[var1][var4 + 2].indexOf("@") != -1) {
- var2[var4].setForeground(Color.blue);
- var3[var4].show();
- } else {
- var2[var4].setForeground(Color.black);
- var3[var4].hide();
- if (this.field_18[var1][var4 + 2].indexOf("www.") != -1) {
- var2[var4].setForeground(Color.red);
- var3[var4].show();
- } else {
- var2[var4].setForeground(Color.black);
- var3[var4].hide();
- if (this.field_18[var1][var4 + 2].indexOf("http://") != -1) {
- var2[var4].setForeground(Color.red);
- var3[var4].show();
- } else {
- var2[var4].setForeground(Color.black);
- var3[var4].hide();
- if (this.field_18[var1][var4 + 2].indexOf("ftp://") != -1) {
- var2[var4].setForeground(Color.blue);
- var3[var4].show();
- } else {
- var2[var4].setForeground(Color.black);
- var3[var4].hide();
- }
- }
- }
- }
- }
-
- if (this.field_18[var1][17].indexOf("1") >= 0) {
- this.BComments.enable();
- } else {
- this.BComments.disable();
- this.t18.setText("");
- }
-
- if (this.field_18[var1][18].indexOf("1") >= 0) {
- this.BView.enable();
- } else {
- this.BView.disable();
- }
-
- this.CurrentRecord = var1;
- if (this.ImageC != null) {
- this.ImageC.flush();
- }
-
- this.ImageC = null;
- if (this.image != null && this.field_18[var1][18].indexOf("1") >= 0) {
- new String(this.dataname + this.field_10.getText() + ".jpg");
- this.ImageC = ((Applet)this).getImage(((Applet)this).getDocumentBase(), this.dataname + this.field_10.getText() + ".jpg");
- MediaTracker var5 = new MediaTracker(this);
- var5.addImage(this.ImageC, 0);
-
- try {
- var5.waitForID(0);
- } catch (InterruptedException var8) {
- }
- }
-
- Object var11 = null;
- String var6 = "";
-
- try {
- if (this.imgcom != null && this.comment != null && this.field_18[var1][17].indexOf("1") >= 0) {
- URL var13 = new URL(((Applet)this).getCodeBase() + "notes" + this.dataname + this.field_10.getText() + ".txt");
- if (this.upd != 1) {
- try {
- if (this.field_18[var1][17].indexOf("1") >= 0) {
- DataInputStream var7 = new DataInputStream(var13.openStream());
- this.t18.setText("");
-
- while((var6 = var7.readLine()) != null) {
- this.t18.appendText(var6 + "\n");
- }
- }
- } catch (IOException var9) {
- this.t18.setText("");
- }
- }
- }
- } catch (MalformedURLException var10) {
- var11 = null;
- }
-
- ((Component)this).repaint();
- }
-
- public void init() {
- super.init();
- this.lmess = new Label("File Missing:");
- this.lmess.reshape(5, 25, 245, 16);
- this.lmess.setFont(new Font("Arial", 0, 12));
- this.lmess.setBackground(new Color(12632256));
- ((Container)this).add(this.lmess);
- ((Container)this).setLayout((LayoutManager)null);
- ((Applet)this).resize(605, 375);
- ((Component)this).setBackground(new Color(12632256));
- this.field_0 = new TextField();
- this.field_0.setEditable(false);
- this.field_0.reshape(156, 42, 80, 18);
- this.field_0.setFont(new Font("Helvetica", 1, 11));
- this.field_0.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_0);
- this.field_1 = new Label("");
- this.field_1.reshape(6, 43, 130, 18);
- this.field_1.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_1);
- this.field_2 = new Label("");
- this.field_2.reshape(264, 43, 34, 18);
- this.field_2.setFont(new Font("Dialog", 0, 12));
- ((Container)this).add(this.field_2);
- this.field_3 = new Label("");
- this.field_3.reshape(6, 64, 130, 18);
- this.field_3.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_3);
- this.field_4 = new Label("");
- this.field_4.reshape(6, 84, 130, 18);
- this.field_4.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_4);
- this.field_5 = new Label("");
- this.field_5.reshape(6, 104, 130, 18);
- this.field_5.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_5);
- this.field_6 = new Label("");
- this.field_6.reshape(6, 124, 130, 18);
- this.field_6.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_6);
- this.field_7 = new Label("");
- this.field_7.reshape(6, 144, 130, 18);
- this.field_7.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_7);
- this.field_8 = new Label("");
- this.field_8.reshape(6, 164, 130, 18);
- this.field_8.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_8);
- this.field_9 = new Label("");
- this.field_9.reshape(6, 184, 130, 18);
- this.field_9.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.field_9);
- this.l10 = new Label("");
- this.l10.reshape(6, 204, 130, 18);
- this.l10.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l10);
- this.l11 = new Label("");
- this.l11.reshape(6, 224, 130, 18);
- this.l11.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l11);
- this.l12 = new Label("");
- this.l12.reshape(6, 244, 130, 18);
- this.l12.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l12);
- this.l13 = new Label("");
- this.l13.reshape(6, 264, 130, 18);
- this.l13.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l13);
- this.l14 = new Label("");
- this.l14.reshape(6, 284, 130, 18);
- this.l14.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l14);
- this.l15 = new Label("");
- this.l15.reshape(6, 304, 130, 18);
- this.l15.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l15);
- this.l16 = new Label("");
- this.l16.reshape(6, 324, 130, 18);
- this.l16.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l16);
- this.l17 = new Label("");
- this.l17.reshape(6, 344, 130, 18);
- this.l17.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.l17);
- this.t10 = new TextField();
- this.t10.setEditable(false);
- this.t10.reshape(156, 204, 230, 18);
- this.t10.setFont(new Font("Helvetica", 0, 11));
- this.t10.setBackground(new Color(-2302756));
- ((Container)this).add(this.t10);
- this.t11 = new TextField();
- this.t11.setEditable(false);
- this.t11.reshape(156, 224, 230, 18);
- this.t11.setFont(new Font("Helvetica", 0, 11));
- this.t11.setBackground(new Color(-2302756));
- ((Container)this).add(this.t11);
- this.t12 = new TextField();
- this.t12.setEditable(false);
- this.t12.reshape(156, 244, 230, 18);
- this.t12.setFont(new Font("Helvetica", 0, 11));
- this.t12.setBackground(new Color(-2302756));
- ((Container)this).add(this.t12);
- this.t13 = new TextField();
- this.t13.setEditable(false);
- this.t13.reshape(156, 264, 230, 18);
- this.t13.setFont(new Font("Helvetica", 0, 11));
- this.t13.setBackground(new Color(-2302756));
- ((Container)this).add(this.t13);
- this.t14 = new TextField();
- this.t14.setEditable(false);
- this.t14.reshape(156, 284, 230, 18);
- this.t14.setFont(new Font("Helvetica", 0, 11));
- this.t14.setBackground(new Color(-2302756));
- ((Container)this).add(this.t14);
- this.t15 = new TextField();
- this.t15.setEditable(false);
- this.t15.reshape(156, 304, 230, 18);
- this.t15.setFont(new Font("Helvetica", 0, 11));
- this.t15.setBackground(new Color(-2302756));
- ((Container)this).add(this.t15);
- this.t16 = new TextField();
- this.t16.setEditable(false);
- this.t16.reshape(156, 324, 230, 18);
- this.t16.setFont(new Font("Helvetica", 0, 11));
- this.t16.setBackground(new Color(-2302756));
- ((Container)this).add(this.t16);
- this.t17 = new TextField();
- this.t17.setEditable(false);
- this.t17.reshape(156, 344, 230, 18);
- this.t17.setFont(new Font("Helvetica", 0, 11));
- this.t17.setBackground(new Color(-2302756));
- ((Container)this).add(this.t17);
- this.field_10 = new TextField();
- this.field_10.setEditable(false);
- this.field_10.reshape(304, 42, 82, 18);
- this.field_10.setFont(new Font("Helvetica", 1, 11));
- this.field_10.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_10);
- this.field_11 = new TextField();
- this.field_11.setEditable(false);
- this.field_11.reshape(156, 64, 230, 18);
- this.field_11.setFont(new Font("Helvetica", 0, 11));
- this.field_11.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_11);
- this.field_12 = new TextField();
- this.field_12.setEditable(false);
- this.field_12.reshape(156, 84, 230, 18);
- this.field_12.setFont(new Font("Helvetica", 0, 11));
- this.field_12.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_12);
- this.field_13 = new TextField();
- this.field_13.setEditable(false);
- this.field_13.reshape(156, 104, 230, 18);
- this.field_13.setFont(new Font("Helvetica", 0, 11));
- this.field_13.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_13);
- this.field_14 = new TextField();
- this.field_14.setEditable(false);
- this.field_14.reshape(156, 124, 230, 18);
- this.field_14.setFont(new Font("Helvetica", 0, 11));
- this.field_14.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_14);
- this.field_15 = new TextField();
- this.field_15.setEditable(false);
- this.field_15.reshape(156, 144, 230, 18);
- this.field_15.setFont(new Font("Helvetica", 0, 11));
- this.field_15.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_15);
- this.field_16 = new TextField();
- this.field_16.setEditable(false);
- this.field_16.reshape(156, 164, 230, 18);
- this.field_16.setFont(new Font("Helvetica", 0, 11));
- this.field_16.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_16);
- this.field_17 = new TextField();
- this.field_17.setEditable(false);
- this.field_17.reshape(156, 184, 230, 18);
- this.field_17.setFont(new Font("Helvetica", 0, 11));
- this.field_17.setBackground(new Color(-2302756));
- ((Container)this).add(this.field_17);
- this.button1 = new Button();
- this.button1.setLabel("Find Prev");
- this.button1.reshape(420, 178, 55, 18);
- this.button1.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.button1);
- this.button1.disable();
- this.button2 = new Button();
- this.button2.setLabel("Find First");
- this.button2.reshape(478, 178, 55, 18);
- this.button2.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.button2);
- this.button3 = new Button();
- this.button3.setLabel("Find Next");
- this.button3.reshape(536, 178, 55, 18);
- this.button3.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.button3);
- this.button3.disable();
- this.tfsearch = new TextField();
- this.tfsearch.reshape(420, 156, 168, 20);
- this.tfsearch.setFont(new Font("Helvetica", 0, 12));
- this.tfsearch.setBackground(new Color(16777215));
- ((Container)this).add(this.tfsearch);
- this.label1 = new Label("Search Criteria", 1);
- this.label1.reshape(420, 138, 168, 16);
- this.label1.setFont(new Font("Helvetica", 0, 12));
- ((Container)this).add(this.label1);
- this.templabel = new Label("", 1);
- this.templabel.reshape(430, 198, 150, 17);
- this.templabel.setFont(new Font("Helvetica", 0, 11));
- ((Container)this).add(this.templabel);
- this.l18 = new Label("Comments");
- this.l18.reshape(424, 215, 108, 16);
- this.l18.setFont(new Font("Helvetica", 0, 11));
- this.l18.setForeground(new Color(0));
- ((Container)this).add(this.l18);
- this.BView = new Button();
- this.BView.setLabel("Zoom");
- this.BView.reshape(546, 2, 46, 16);
- this.BView.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.BView);
- this.BComments = new Button();
- this.BComments.setLabel("View");
- this.BComments.reshape(544, 215, 46, 16);
- this.BComments.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.BComments);
- this.Group1 = new CheckboxGroup();
- this.rb1 = new Checkbox("1", this.Group1, false);
- this.rb1.reshape(388, 46, 15, 10);
- ((Container)this).add(this.rb1);
- this.rb2 = new Checkbox("2", this.Group1, false);
- this.rb2.reshape(388, 68, 15, 10);
- ((Container)this).add(this.rb2);
- this.rb3 = new Checkbox("3", this.Group1, false);
- this.rb3.reshape(388, 88, 15, 10);
- ((Container)this).add(this.rb3);
- this.rb4 = new Checkbox("4", this.Group1, false);
- this.rb4.reshape(388, 108, 15, 10);
- ((Container)this).add(this.rb4);
- this.rb5 = new Checkbox("5", this.Group1, false);
- this.rb5.reshape(388, 128, 15, 10);
- ((Container)this).add(this.rb5);
- this.rb6 = new Checkbox("6", this.Group1, false);
- this.rb6.reshape(388, 148, 15, 10);
- ((Container)this).add(this.rb6);
- this.rb7 = new Checkbox("7", this.Group1, false);
- this.rb7.reshape(388, 168, 15, 10);
- ((Container)this).add(this.rb7);
- this.rb8 = new Checkbox("8", this.Group1, false);
- this.rb8.reshape(388, 188, 15, 10);
- ((Container)this).add(this.rb8);
- this.BFirst = new Button();
- this.BFirst.setLabel("<<");
- this.BFirst.reshape(156, 12, 30, 20);
- this.BFirst.setFont(new Font("Dialog", 1, 12));
- ((Container)this).add(this.BFirst);
- this.BPrev = new Button();
- this.BPrev.setLabel("<");
- this.BPrev.reshape(188, 12, 30, 20);
- this.BPrev.setFont(new Font("Dialog", 1, 12));
- ((Container)this).add(this.BPrev);
- this.BNext = new Button();
- this.BNext.setLabel(">");
- this.BNext.reshape(220, 12, 30, 20);
- this.BNext.setFont(new Font("Dialog", 1, 12));
- ((Container)this).add(this.BNext);
- this.BLast = new Button();
- this.BLast.setLabel(">>");
- this.BLast.reshape(252, 12, 30, 20);
- this.BLast.setFont(new Font("Dialog", 1, 12));
- ((Container)this).add(this.BLast);
- this.BCreated = new Button();
- this.BCreated.setLabel("Powered by INSTAbase");
- this.BCreated.reshape(426, 2, 115, 16);
- this.BCreated.setFont(new Font("Arial", 1, 11));
- ((Container)this).add(this.BCreated);
- this.LReg = new Label("Unregistered version");
- this.LReg.reshape(423, 3, 138, 16);
- this.LReg.setFont(new Font("Helvetica", 1, 11));
- this.LReg.setForeground(new Color(-8388608));
- ((Container)this).add(this.LReg);
- this.LNrRec = new Label("");
- this.LNrRec.reshape(304, 14, 94, 18);
- this.LNrRec.setFont(new Font("Helvetica", 0, 12));
- this.LNrRec.setForeground(new Color(-8388608));
- ((Container)this).add(this.LNrRec);
- this.bGo3 = new Button();
- this.bGo3.reshape(138, 64, 18, 17);
- this.bGo3.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo3);
- this.bGo4 = new Button();
- this.bGo4.reshape(138, 84, 18, 17);
- this.bGo4.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo4);
- this.bGo5 = new Button();
- this.bGo5.reshape(138, 104, 18, 17);
- this.bGo5.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo5);
- this.bGo6 = new Button();
- this.bGo6.reshape(138, 124, 18, 17);
- this.bGo6.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo6);
- this.bGo7 = new Button();
- this.bGo7.reshape(138, 144, 18, 17);
- this.bGo7.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo7);
- this.bGo8 = new Button();
- this.bGo8.reshape(138, 164, 18, 17);
- this.bGo8.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo8);
- this.bGo9 = new Button();
- this.bGo9.reshape(138, 184, 18, 17);
- this.bGo9.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo9);
- this.bGo10 = new Button();
- this.bGo10.reshape(138, 204, 18, 17);
- this.bGo10.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo10);
- this.bGo11 = new Button();
- this.bGo11.reshape(138, 224, 18, 17);
- this.bGo11.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo11);
- this.bGo12 = new Button();
- this.bGo12.reshape(138, 244, 18, 17);
- this.bGo12.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo12);
- this.bGo13 = new Button();
- this.bGo13.reshape(138, 264, 18, 17);
- this.bGo13.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo13);
- this.bGo14 = new Button();
- this.bGo14.reshape(138, 284, 18, 17);
- this.bGo14.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo14);
- this.bGo15 = new Button();
- this.bGo15.reshape(138, 304, 18, 17);
- this.bGo15.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo15);
- this.bGo16 = new Button();
- this.bGo16.reshape(138, 324, 18, 17);
- this.bGo16.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo16);
- this.bGo17 = new Button();
- this.bGo17.reshape(138, 344, 18, 17);
- this.bGo17.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.bGo17);
- this.t18 = new TextArea();
- this.t18.setEditable(false);
- this.t18.reshape(422, 233, 168, 130);
- this.t18.setFont(new Font("Helvetica", 0, 11));
- this.t18.setBackground(new Color(-2302756));
- ((Container)this).add(this.t18);
- this.rb9 = new Checkbox("9", this.Group1, false);
- this.rb9.reshape(388, 208, 15, 10);
- ((Container)this).add(this.rb9);
- this.rb10 = new Checkbox("10", this.Group1, false);
- this.rb10.reshape(388, 228, 15, 10);
- ((Container)this).add(this.rb10);
- this.rb11 = new Checkbox("11", this.Group1, false);
- this.rb11.reshape(388, 248, 15, 10);
- ((Container)this).add(this.rb11);
- this.rb12 = new Checkbox("12", this.Group1, false);
- this.rb12.reshape(388, 268, 15, 10);
- ((Container)this).add(this.rb12);
- this.rb16 = new Checkbox("16", this.Group1, false);
- this.rb16.reshape(388, 348, 15, 10);
- ((Container)this).add(this.rb16);
- this.rb15 = new Checkbox("15", this.Group1, false);
- this.rb15.reshape(388, 328, 15, 10);
- ((Container)this).add(this.rb15);
- this.rb14 = new Checkbox("14", this.Group1, false);
- this.rb14.reshape(388, 308, 15, 10);
- ((Container)this).add(this.rb14);
- this.rb13 = new Checkbox("13", this.Group1, false);
- this.rb13.reshape(388, 288, 15, 10);
- ((Container)this).add(this.rb13);
- this.norec = new Label("");
- this.norec.reshape(80, 14, 66, 16);
- this.norec.setAlignment(2);
- ((Container)this).add(this.norec);
- this.max_no_rec = 40000;
- this.local_no_rec = 10;
- this.isLocal = false;
- if (((Applet)this).getDocumentBase().toString().indexOf("file:") != -1) {
- this.max_no_rec = this.local_no_rec;
- this.isLocal = true;
- this.hide_butt();
- }
-
- this.field_18 = new String[this.max_no_rec][17];
- this.LReg.hide();
- this.sProvider = this.sProvider + "ww";
- this.lmess.hide();
- this.bar1 = new Label("");
- this.bar1.reshape(24, 28, 8, 10);
- this.bar1.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar1);
- this.bar2 = new Label("");
- this.bar2.reshape(32, 28, 8, 10);
- this.bar2.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar2);
- this.bar3 = new Label("");
- this.bar3.reshape(40, 28, 8, 10);
- this.bar3.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar3);
- this.bar4 = new Label("");
- this.bar4.reshape(48, 28, 8, 10);
- this.bar4.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar4);
- this.bar5 = new Label("");
- this.bar5.reshape(56, 28, 8, 10);
- this.bar5.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar5);
- this.bar6 = new Label("");
- this.bar6.reshape(62, 28, 8, 10);
- this.bar6.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar6);
- this.bar7 = new Label("");
- this.bar7.reshape(70, 28, 8, 10);
- this.bar7.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar7);
- this.bar8 = new Label("");
- this.bar8.reshape(78, 28, 8, 10);
- this.bar8.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar8);
- this.bar9 = new Label("");
- this.bar9.reshape(86, 28, 8, 10);
- this.bar9.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar9);
- this.bar10 = new Label("");
- this.bar10.reshape(94, 28, 8, 10);
- this.bar10.setFont(new Font("Helvetica", 1, 12));
- ((Container)this).add(this.bar10);
- this.label_bar = new Label("");
- this.label_bar.reshape(110, 27, 55, 13);
- this.label_bar.setFont(new Font("Helvetica", 1, 11));
- ((Container)this).add(this.label_bar);
- this.LNrRec.hide();
- this.lbar[0] = this.bar1;
- this.lbar[1] = this.bar2;
- this.lbar[2] = this.bar3;
- this.lbar[3] = this.bar4;
- this.lbar[4] = this.bar5;
- this.sProvider = this.sProvider + ".";
- this.lbar[5] = this.bar6;
- this.lbar[6] = this.bar7;
- this.lbar[7] = this.bar8;
- this.lbar[8] = this.bar9;
- this.lbar[9] = this.bar10;
- this.vec_rb[0] = this.rb1;
- this.vec_rb[1] = this.rb2;
- this.vec_rb[2] = this.rb3;
- this.vec_rb[3] = this.rb4;
- this.vec_rb[4] = this.rb5;
- this.sProvider = this.sProvider + "Ins";
- this.vec_rb[5] = this.rb6;
- this.vec_rb[6] = this.rb7;
- this.vec_rb[7] = this.rb8;
- this.vec_rb[8] = this.rb9;
- this.vec_rb[9] = this.rb10;
- this.sProvider = this.sProvider + "tab";
- this.vec_rb[10] = this.rb11;
- this.vec_rb[11] = this.rb12;
- this.vec_rb[12] = this.rb13;
- this.vec_rb[13] = this.rb14;
- this.vec_rb[14] = this.rb15;
- this.sProvider = this.sProvider + "as";
- this.vec_rb[15] = this.rb16;
- this.sProvider = this.sProvider + "e.c";
- this.hide_data();
- this.BCreated.hide();
-
- try {
- String var1 = new String(((Applet)this).getParameter("created"));
- if (var1 != null) {
- this.c_d = this.StrToInt(var1);
- if (this.c_d == 0) {
- this.field_1.hide();
- this.field_0.hide();
- }
- }
- } catch (NullPointerException var25) {
- }
-
- String var30 = ((Applet)this).getParameter("table");
- String var2 = ((Applet)this).getParameter("label");
- String var3 = ((Applet)this).getParameter("dataname");
- String var4 = ((Applet)this).getParameter("site");
- String var5 = ((Applet)this).getParameter("color");
- String var6 = ((Applet)this).getParameter("textcolor");
- String var7 = ((Applet)this).getParameter("fieldnr");
- if (var30 != null) {
- this.file1 = var30;
- }
-
- if (var2 != null) {
- this.file2 = var2;
- }
-
- if (var3 != null) {
- this.dataname = var3;
- }
-
- if (var4 != null) {
- this.site = var4;
- }
-
- this.fnr = this.StrToInt(var7);
- if (this.fnr < 0 || this.fnr > 17) {
- this.fnr = 3;
- }
-
- this.imgcom = ((Applet)this).getParameter("imgcom");
- this.image = ((Applet)this).getParameter("image");
- this.comment = ((Applet)this).getParameter("comment");
- this.sProvider = this.sProvider + "o";
- this.sProvider = this.sProvider + "m";
- if (this.imgcom == null || this.StrToInt(this.imgcom) == 0) {
- this.imgcom = null;
- }
-
- if (this.image == null || this.StrToInt(this.image) == 0) {
- this.image = null;
- }
-
- if (this.comment == null || this.StrToInt(this.comment) == 0) {
- this.comment = null;
- }
-
- if (this.imgcom != null && this.image == null && this.comment != null) {
- this.t18.reshape(418, 34, 170, 104);
- this.BComments.reshape(546, 2, 46, 16);
- this.l18.reshape(426, 18, 108, 16);
- }
-
- if (this.imgcom == null || this.image == null && this.comment == null) {
- this.t18.hide();
- this.l18.hide();
- this.BView.hide();
- this.BComments.hide();
- this.BView = new Button("View Picture");
- this.BView.reshape(421, 25, 112, 20);
- this.BView.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.BView);
- this.BComments = new Button("View Comments");
- this.BComments.reshape(421, 50, 112, 19);
- this.BComments.setFont(new Font("Helvetica", 1, 10));
- ((Container)this).add(this.BComments);
- byte var8 = 0;
- byte var9 = 0;
- if (this.comment == null) {
- var9 = 22;
- }
-
- if (this.image == null) {
- var8 = 25;
- this.BComments.reshape(421, 25, 112, 19);
- }
-
- this.label1.reshape(420, 70 - var9 - var8, 168, 16);
- this.tfsearch.reshape(420, 88 - var9 - var8, 168, 20);
- this.button1.reshape(420, 110 - var9 - var8, 55, 18);
- this.button2.reshape(478, 110 - var9 - var8, 55, 18);
- this.button3.reshape(536, 110 - var9 - var8, 55, 18);
- this.templabel.reshape(430, 130 - var9 - var8, 150, 17);
- }
-
- this.tfsearch.requestFocus();
- if (var5 == null || var6 == null) {
- var5 = "FFFFFF";
- var6 = "000000";
- }
-
- int var31;
- int var32;
- if ((var31 = this.HexStrToInt(var5)) >= 0 && (var32 = this.HexStrToInt(var6)) >= 0) {
- Color var10 = new Color(var31);
- Color var11 = new Color(var32);
- this.Appletcolor = var10;
- if (this.comment == null) {
- this.t18.hide();
- this.BComments.hide();
- this.l18.hide();
- }
-
- if (this.image == null) {
- this.BView.hide();
- }
-
- Label[] var12 = new Label[]{this.field_1, this.field_2, this.field_3, this.field_4, this.field_5, this.field_6, this.field_7, this.field_8, this.field_9, this.l10, this.l11, this.l12, this.l13, this.l14, this.l15, this.l16, this.l17, this.l18, this.label1, this.LReg, this.templabel, this.LNrRec, this.norec};
- TextField[] var13 = new TextField[]{this.field_0, this.field_10, this.field_11, this.field_12, this.field_13, this.field_14, this.field_15, this.field_16, this.field_17, this.t10, this.t11, this.t12, this.t13, this.t14, this.t15, this.t16, this.t17};
-
- try {
- new String("");
- int var17 = 10;
- int var18 = 0;
- new String("");
- new String("");
- String var21 = new String(((Applet)this).getParameter("labelfont"));
- int var14 = var21.indexOf(",");
- String var16 = var21.substring(0, var14);
- int var15 = var21.indexOf(",", var14 + 1);
- String var19 = var21.substring(var14 + 1, var15);
- String var20 = var21.substring(var15 + 1);
- var17 = this.StrToInt(var20);
- var18 = this.StrToInt(var19);
- if (var18 < 0 || var18 > 3) {
- var18 = 0;
- }
-
- for(int var22 = 0; var22 < this.fnr; ++var22) {
- var12[var22].setFont(new Font(var16, var18, var17));
- }
- } catch (NullPointerException var29) {
- }
-
- try {
- new String("");
- int var38 = 10;
- int var44 = 0;
- new String("");
- new String("");
- String var54 = new String(((Applet)this).getParameter("textfieldfont"));
- int var33 = var54.indexOf(",");
- String var35 = var54.substring(0, var33);
- int var34 = var54.indexOf(",", var33 + 1);
- String var48 = var54.substring(var33 + 1, var34);
- String var51 = var54.substring(var34 + 1);
- var38 = this.StrToInt(var51);
- var44 = this.StrToInt(var48);
- if (var44 < 0 || var44 > 3) {
- var44 = 0;
- }
-
- for(int var56 = 0; var56 < this.fnr; ++var56) {
- var13[var56].setFont(new Font(var35, var44, var38));
- }
- } catch (NullPointerException var28) {
- }
-
- this.stab = new int[this.fnr - 1];
-
- for(int var36 = 0; var36 < this.fnr - 1; ++var36) {
- this.stab[var36] = var36 + 2;
- }
-
- try {
- String var40 = new String(((Applet)this).getParameter("searchfields"));
- StringTokenizer var46 = new StringTokenizer(var40, ",");
- int var49 = 0;
-
- for(int var52 = 0; var52 < this.fnr - 1; ++var52) {
- this.stab[var52] = 0;
- }
-
- while(var46.hasMoreTokens() && var49 <= this.fnr - 2) {
- this.stab[var49++] = this.StrToInt(var46.nextToken());
- }
- } catch (NullPointerException var27) {
- }
-
- if (!this.isLocal) {
- this.show_data();
- }
-
- boolean var47 = false;
- boolean var41 = false;
- ((Component)this).setBackground(var10);
-
- for(int var50 = 1; var50 <= 23; ++var50) {
- var12[var50 - 1].setBackground(var10);
- var12[var50 - 1].setForeground(var11);
- }
-
- for(int var53 = 0; var53 < 10; ++var53) {
- this.lbar[var53].setBackground(var10);
- this.lbar[var53].setForeground(var11);
- }
-
- this.label_bar.setBackground(var10);
- this.label_bar.setForeground(var11);
- this.lmess.setBackground(var10);
- this.lmess.setForeground(var11);
- this.labelColor = var11;
-
- for(int var42 = 0; var42 < 10; ++var42) {
- this.lbar[var42].move(285 + 8 * var42, 17);
- }
-
- this.label_bar.move(367, 16);
- this.label_bar.setText("Loading...");
- int var55 = 2;
-
- try {
- String var57 = new String(((Applet)this).getParameter("pre_selected"));
- if (var57 != null) {
- var55 = this.StrToInt(var57);
- }
-
- if (var55 < 2 || var55 > this.fnr) {
- var55 = 2;
- }
-
- boolean var23 = false;
-
- for(int var24 = 0; var24 < this.fnr - 1 && this.stab[var24] != 0; ++var24) {
- if (var55 == this.stab[var24]) {
- var23 = true;
- break;
- }
- }
-
- if (!var23) {
- var55 = 2;
- }
- } catch (NullPointerException var26) {
- }
-
- this.vec_rb[var55 - 2].setState(true);
- if (this.mainThread == null) {
- this.mainThread = new Thread(this);
- this.mainThread.start();
- }
-
- } else {
- this.templabel.setText("Color Error");
- }
- }
-
- public boolean handleEvent(Event var1) {
- if (var1.id == 502) {
- int var7 = var1.x;
- int var8 = var1.y;
- if (var7 <= 35 && var8 <= 35) {
- Object var9 = null;
-
- try {
- this.site = ((Applet)this).getCodeBase().toString();
- String var12 = this.site.replace('/', '!');
- if (this.Register == 1) {
- var12 = var12 + "!" + this.dataname + "!" + "u.html";
- } else {
- var12 = var12 + "!" + this.dataname + "!" + "r.html";
- }
-
- URL var11 = new URL("http://" + this.sProvider + "/" + var12);
- ((Applet)this).getAppletContext().showDocument(var11, "_blank");
- } catch (MalformedURLException var6) {
- var9 = null;
- }
-
- return true;
- } else {
- return false;
- }
- } else {
- if (var1.id == 1001) {
- if (var1.target == this.button2) {
- this.button2_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.button3) {
- this.button3_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.button1) {
- this.button1_Clicked(var1);
- return true;
- }
-
- Checkbox[] var2 = new Checkbox[]{this.rb1, this.rb2, this.rb3, this.rb4, this.rb5, this.rb6, this.rb7, this.rb8, this.rb9, this.rb10, this.rb11, this.rb12, this.rb13, this.rb14, this.rb15, this.rb16};
-
- for(int var3 = 0; var3 < 16; ++var3) {
- if (var1.target == var2[var3]) {
- this.rb1_Action(var1);
- return true;
- }
- }
-
- if (var1.target == this.BFirst) {
- this.BFirst_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.BPrev) {
- this.BPrev_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.BNext) {
- this.BNext_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.BLast) {
- this.BLast_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.tfsearch) {
- this.tfsearch_EnterHit(var1);
- return true;
- }
-
- if (var1.target == this.BView) {
- this.BView_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.BComments) {
- this.BComments_Clicked(var1);
- return true;
- }
-
- if (var1.target == this.BCreated) {
- this.BCreated_Clicked(var1);
- return true;
- }
-
- Button[] var4 = new Button[]{this.bGo3, this.bGo4, this.bGo5, this.bGo6, this.bGo7, this.bGo8, this.bGo9, this.bGo10, this.bGo11, this.bGo12, this.bGo13, this.bGo14, this.bGo15, this.bGo16, this.bGo17};
-
- for(int var5 = 0; var5 < 15; ++var5) {
- if (var1.target == var4[var5]) {
- this.bGo3_Clicked(var1, var4[var5]);
- return true;
- }
- }
- }
-
- if (this.upd == 1) {
- this.upd = 0;
- this.show_record(0);
- }
-
- return super.handleEvent(var1);
- }
- }
-
- public int StrToInt(String var1) {
- int var2 = 0;
-
- for(int var3 = 0; var3 < var1.length(); ++var3) {
- switch (var1.charAt(var1.length() - var3 - 1)) {
- case '0':
- var2 += 0 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '1':
- var2 += (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '2':
- var2 += 2 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '3':
- var2 += 3 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '4':
- var2 += 4 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '5':
- var2 += 5 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '6':
- var2 += 6 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '7':
- var2 += 7 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '8':
- var2 += 8 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- case '9':
- var2 += 9 * (int)Math.pow((double)10.0F, (double)var3);
- break;
- default:
- return -1;
- }
- }
-
- return var2;
- }
-
- public int HexStrToInt(String var1) {
- int var2 = 0;
-
- for(int var3 = 0; var3 < var1.length(); ++var3) {
- switch (var1.charAt(var1.length() - var3 - 1)) {
- case '0':
- var2 += 0 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '1':
- var2 += (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '2':
- var2 += 2 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '3':
- var2 += 3 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '4':
- var2 += 4 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '5':
- var2 += 5 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '6':
- var2 += 6 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '7':
- var2 += 7 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '8':
- var2 += 8 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case '9':
- var2 += 9 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'A':
- var2 += 10 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'B':
- var2 += 11 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'C':
- var2 += 12 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'D':
- var2 += 13 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'E':
- var2 += 14 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'F':
- var2 += 15 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'a':
- var2 += 10 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'b':
- var2 += 11 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'c':
- var2 += 12 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'd':
- var2 += 13 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'e':
- var2 += 14 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- case 'f':
- var2 += 15 * (int)Math.pow((double)16.0F, (double)var3);
- break;
- default:
- return -1;
- }
- }
-
- return var2;
- }
-
- public void update(Graphics var1) {
- this.oldaidx = this.aidx;
- this.aidx = (this.aidx + 1) % 8;
- var1.setColor(this.mycolor);
- var1.drawOval(this.posx[this.oldaidx], this.posy[this.oldaidx], 4, 4);
- var1.fillOval(this.posx[this.oldaidx], this.posy[this.oldaidx], 4, 4);
- var1.setColor(this.labelColor);
- var1.drawOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
- var1.fillOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
- if (this.barThread == null || this.barThread.barThread == null) {
- this.updateImg(var1);
- }
-
- }
-
- public void updateImg(Graphics var1) {
- if (this.imgcom != null && this.image != null) {
- try {
- if (this.ImageC != null && this.ImageC.getHeight(this) > 0) {
- var1.drawImage(this.ImageC, 422, 24, 170, 110, this);
- } else {
- var1.setColor(this.Appletcolor);
- var1.fillRect(422, 24, 170, 110);
- }
- } catch (NullPointerException var2) {
- }
- }
- }
-
- public void paint(Graphics var1) {
- var1.setColor(this.mycolor);
- var1.setColor(this.labelColor);
- var1.setFont(this.ft1);
- var1.drawString("I", 9, 28);
- var1.setFont(this.ft2);
- var1.drawString("b", 15, 28);
- var1.setColor(this.mycolor);
-
- for(int var2 = 0; var2 < 8; ++var2) {
- var1.drawOval(this.posx[var2], this.posy[var2], 4, 4);
- var1.fillOval(this.posx[var2], this.posy[var2], 4, 4);
- }
-
- var1.setColor(this.labelColor);
- var1.drawOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
- var1.fillOval(this.posx[this.aidx], this.posy[this.aidx], 4, 4);
- this.updateImg(var1);
- }
- }
-